<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<link rel="stylesheet" href="../css/denglu.css">
<body>
    <div class="box">
        <div class="box_logo">
            <span>美发管理系统 </span>
        </div>
        <div class="box_cent">
            <div class="box-centinp">
                <div>用户名 <input type="text" class="yhm"></div>
                <div>密&nbsp;&nbsp; 码 <input type="password" style="margin-left: 32px;" class="mm"></div>
            </div>
            <div class="box-centbut">
                <button class="col dl">登录</button>
                <button class="zc">注册</button>
            </div>
        </div>
    </div>
    <!-- <script src="../jQuery库/jquery-1.10.1.js"></script>
    <script>
        $('.zc').click(()=>{
            window.location='./zhuce.html'
        })
        
    </script> -->
    <script src="../jQuery库/jquery-1.10.1.js"></script>
    <script src="../js/besaurl.js"></script>
    <script>
        // console.log($('.zc'))
        $('.dl').click(function(){
            $.ajax({
                 method:'post',
                url:besaurl+'login',
                data:{
                    user_name:$('.yhm').val(),
                    password:$('.mm').val()
                },
                success:function(data){
                    console.log(data);
                    // window.location='./denglu.html'
                },error:function(err){
                    console.log(err);
                }
            })
        })
        $('.zc').click(()=>{
            window.location='./zhuce.html'
        })
        
    </script> 
</body>
</html>